#include <iostream>
using namespace std;
#define N (string) "NOIP@CCF\0"
string a = N, B;
int main()
{
	char A;
	while (true)
	{
		cin >> A;
		switch (A)
		{
		case 'Y':
			cin >> B;
			if (B == a)
			{
				cout << "Success" << endl;
				return 0;
			}
			else
			{
				cout << "Sorry" << endl;
			}
			break;
		case 'N':
			return 0;
		}
	}
}